package com.devshephard.redis.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.DefaultStringRedisConnection;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import redis.clients.jedis.Jedis;

@Configuration
public class RedisConfig {

    @Bean
    public Jedis jedis(){

        Jedis jedis = new Jedis("192.168.81.130", 6410);
        return jedis;

    }

/*    @Bean
    public RedisTemplate redisTemplate(){

        RedisTemplate redisTemplate = new RedisTemplate();
        return redisTemplate;

    }*/

}
